project(Demo)
cmake_minimum_required(VERSION 2.8)

#cmake_policy(SET CMP0015 NEW)

#set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -std=c++11 -O0 -Wall -g -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -std=c++11 -O2 -Wall -DNDEBUG")
#SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")
aux_source_directory(./src DIR_SRCS)
aux_source_directory(./src/net_msg DIR_SRCS)
aux_source_directory(./src/handle DIR_SRCS)
aux_source_directory(./src/utils DIR_SRCS)
aux_source_directory(./src/config DIR_SRCS)
include_directories(./src)
add_executable(Demo ${DIR_SRCS})
target_link_libraries(Demo pthread)
